#ifndef COMPRESS_H_INCLUDED
#define COMPRESS_H_INCLUDED

typedef struct _RUN_THREHOLD    RUN_THREHOLD;
typedef struct _COMPRESS        COMPRESS;

struct _RUN_THREHOLD
{
    short threhold;       //阈值，针数超过这个阈值，摇床就可以动第二次
    short limit_speed;
};

struct COMPRESS
{
    RUN_THREHOLD *prun_threhold;
    int total_rows;
};

/*
 * @row:运行行数，从0开始
 * @threhold[out]:阈值和限速的信息
 * @ret:NONE
 */
void compress_get_threhold(MH_KNIT *p, int row, RUN_THREHOLD *run_threhold);

#endif // COMPRESS_H_INCLUDED
